<template>
  <!-- #ifdef H5 -->
  <GdVxeTableForm
    ref="tableFormBoxRef"
    :table-loading="tableLoading"
    :search-form-common-attr="searchFormCommonAttr"
    :searchFormItemMetaList="searchFormItemMetaList"
    :search-form-data="searchFormData"
    :table-common-attr="tableCommonAttr"
    :table-col-meta-list="tableColMetaList"
    :table-body-data="tableBodyData"
    :tool-bar-config="toolBarConfig"
    :operation-btns-config="operationBtnsConfig"
    :all-btns-emit-form-item-meta-config="allBtnsEmitFormItemMetaConfig"
    :search-form-item-dynmic-config-list="searchFormItemDynmicConfigList"
    :dialog-form-item-dynmic-config-list="dialogFormItemDynmicConfigList"
    :table-column-dynmic-config-list="tableColumnDynmicConfigList"
    :ancestor-table-common-attr="ancestorTableCommonAttr"
    v-bind="$attrs"
  ></GdVxeTableForm>
  <!-- #endif -->
</template>
<script>
  export default {
    name: "SceneContainerTableForm",
    inheritAttrs: false,
  };
</script>
<script setup>
  import { watch, ref } from "vue";
  // #ifdef H5
  import GdVxeTableForm from "./vxe/index.vue";
  // #endif
  const props = defineProps({
    tableLoading: {
      type: Boolean,
      default: true,
    },
    searchFormCommonAttr: {
      type: Object,
    },
    searchFormItemMetaList: {
      type: Array,
      default: () => [],
    },
    searchFormData: {
      type: Object,
    },
    tableCommonAttr: {
      type: Object,
      default: () => ({}),
    },
    tableColMetaList: {
      type: Array,
      default: () => [],
    },
    tableBodyData: {
      type: Array,
      default: () => [],
    },
    toolBarConfig: {
      type: Object,
    },
    operationBtnsConfig: {
      type: Object,
    },
    allBtnsEmitFormItemMetaConfig: {
      type: Object,
    },
    //////////
    searchFormItemDynmicConfigList: {
      type: Array,
    },
    dialogFormItemDynmicConfigList: {
      type: Array,
    },
    tableColumnDynmicConfigList: {
      type: Array,
    },
    /////////
    /**
     * expand类型中的母子表情况的顶层tableCommonAttr
     */
    ancestorTableCommonAttr: {
      type: Object,
    },
  });
  console.log(props, "这里可以");
  //const emits = defineEmits(["tableCellClick","activeCurrentRow"]);
  const tableFormBoxRef = ref(null);
  const refreshMetaData = () => {
    return tableFormBoxRef.value.tableOperationMethods.refreshTableMetaData;
  };
  defineExpose({
    tableFormBoxRef,
    refreshMetaData
  });
</script>
<style scoped></style>
